package cn.tedu.gatewayshanghai.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sh")
public class ShanghaiController {

    @GetMapping("/hello")
    public String show(@RequestHeader("request-color") String color,
                       Integer age){
        return "上海欢迎您，gateway添加了请求头信息为："+ color+age;
    }
}
